package com.ruoyi.service.impl;

import com.ruoyi.demo.StudentInfo;
import com.ruoyi.mapper.StudentMapper;
import com.ruoyi.service.StudentinfoSerive;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class StudentServicelmpl  implements StudentinfoSerive {

    @Resource
    private StudentMapper studentMapper;

    @Override
    public List<StudentInfo> list() {
        return studentMapper.list();
    }



    @Override
    public void InsertStudent(StudentInfo studentInfo) {
        studentMapper.InserStudent(studentInfo);
    }

    @Override
    public String al() {
        String al = studentMapper.al();
        return al;
    }

    @Override
    public void delete(Integer id) {
        studentMapper.delete(id);
    }

    @Override
    public void create(StudentInfo studentInfo) {
        studentMapper.create(studentInfo);
    }

    @Override
    public void deleteIds(Integer[] id) {
        studentMapper.deleteIds(id);
    }

    @Override
    public List<StudentInfo> getList(String age, Integer id) {
       return studentMapper.getList(age, id);
    }
}
